/*
** xrealloc.c for libmy in /home/goupil_r//Tek2Ed/minitalk/src
**
** Made by robin goupil
** Login   <goupil_r@epitech.net>
**
** Started on  Wed Nov 14 11:53:55 2012 robin goupil
** Last update Sat Nov 17 10:14:37 2012 robin goupil
*/

#include "my.h"

void		*xrealloc(void *ptr, int size, int new_size)
{
  char		*out;
  char		*cpy;

  out = xmalloc(new_size);
  cpy = (char *)ptr;
  my_strncpy(out, cpy, size);
  xfree(ptr);
  return (out);
}
